export type LoginRequest = {
    username: string;
    password: string;
};

// 刷新登录信息需要的参数
export type ReLoginRequest = {
    accessToken: string;
};

// 登录后返回的响应信息
export type LoginResponse = {
    username: string;
    roles: Array<string>;
    // roles: string[];
    accessToken: string;
};

export type Role = {
    role: number;
    roleName: string;
};

export type UserInfo = {
    id: number;
    nickName: string;
    userName: string;
    roles: Role[];
};
